﻿//初始化
$(document).ready(function(){
	$(document).ready(function(){
		for(i=0;i<formnames.length;i++){
			if($("*[name='"+formnames[i]+"']").attr("type") == "radio"){
				var radios = $("*[name='"+formnames[i]+"']");
				for(j=0;j<radios.length;j++) if($(radios[j]).val() == formvalues[i]) $(radios[j]).get(0).checked = true;
			}else {
				$("*[name='"+formnames[i]+"']").val(formvalues[i]);
			}
		}
	});
	$("#formdesign input").attr("readonly", true);
	$("#formdesign textarea").attr("readonly", true);
});